# -*- coding: utf-8 -*-            
# @Author : liguang
# @Time : 2023/11/17 14:04
import time

f = open("D:\Test.txt","r",encoding="UTF-8")
content = f.read()
print(f"打印读取文件得到的值:{content}，对应的类型是：{type(f)},打印这里的内容是：{type(content)}")
f.close()
print("==========================================")
with open("D:\Test.txt","r",encoding="UTF-8") as f:
    '''
    这段代码执行完成之后，将会将下面的占用的文件资源给删除掉爱哦
    '''
    for line in f:
        print(f"每一行中的信息是：{line}")

time.sleep(200000)